﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsPhoneGameHungTrung
{
    public class Egg : Product
    {
        public Egg()
        {
            _productName = "Egg";
        }

        public override Product Clone(Vector2 posAnimal, Vector2 whAnimal)
        {
            Egg egg = this.MemberwiseClone() as Egg;
            egg.ProductSprite = new My2DSprite( this.ProductSprite.Texture,
                this.CalculatorPos(posAnimal, whAnimal));
            return egg as Product;
        }

    }
}
